:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Switching the node.js environment.
:: 
:: Author: ZHANGQ
:: Create Time: 2020-02-14
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@ECHO OFF

:: recover old environment
CALL inactivate-node.bat

:: backup current environment
SET PATH_BEFORE_NODE=%PATH%
SET PROMPT_BEFORE_NODE=%PROMPT%
ECHO Backing up the current environment 'PATH' and 'PROMPT' for node.js.

:: set new environment variables
SET PATH=C:\Node;%PATH%
ECHO Setting 'PATH' environment variable for Node.js language.

:: set command line prompt
SET PROMPT=(NODEJS UTF8) $P$G
ECHO Setting the command line prompt for Node.js language.